package top.suven.http.oauth.authorize;

import top.suven.http.oauth.token.OAuthAuthxRequest;
import org.apache.oltu.oauth2.common.exception.OAuthProblemException;
import org.apache.oltu.oauth2.common.exception.OAuthSystemException;


/**
 * @ClassName: OAuthAuthorizeCodeHandler.java
 * @Description: OAUTH2.0的认证服务, auth 请求验证
 * @Author suven.wang
 * @Date 2018/7/26 18:01
 * @Copyright: (c) 2018 gc by https://www.gc.com.cn/
 * @Version : 1.0.0
 *  --------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 *  --------------------------------------------------------
 */
public interface OAuthHandler {


    boolean support(OAuthAuthxRequest tokenRequest);

    boolean handle(OAuthAuthxRequest tokenRequest) throws OAuthProblemException, OAuthSystemException;


//    OauthClientDetails clientId();



}